package com.accp.demo.mapper.pruchase;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.accp.demo.pojo.purchase.PurchaseRequisition;
import com.accp.demo.pojo.purchase.Purchaserequisitiondetail;


/**
 * 采购请购单 
 * @author Administrator
 *
 */
@Mapper
public interface IPurchaseRequisitionMapper {
	
	/**
	 * 采购请购单
	 * 集合
	 * @return
	 */
	public List<PurchaseRequisition> PurchaseRequisitionQueryAll();
	
	
	
	/**
	 * 采购新增方法
	 * @param pojo
	 */
	public void savePurchaseRequisition(PurchaseRequisition pojo);
	
	
	/**
	 * 分页查询
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	public List<PurchaseRequisition> purchaseRequisitionfenye(@Param("pageNum") Integer pageNum,@Param("pageSize") Integer pageSize);
	
	
	/**
	 * 统计数据
	 * @return
	 */
	public int pagebeanselect(@Param("billNo") String billNo);
	
	
	/**
	 * 请购单删除
	 * @param billNo
	 */
	public void deletePurchaseRequisition(String billNo);
	
	/**
	 * 新增子表
	 * @param pojo
	 */
	public void savePurchaserequisitiondetail(Purchaserequisitiondetail pojo);
	
	/**
	 * 修改采购主表
	 * @param pojo
	 */
	public void updatePurchaseRequisition(PurchaseRequisition pojo);
	
	
}
